import React, { Component } from 'react'
import './index.css'
import Item from '../Item/Item'
export default class Main extends Component {
  render() {
    let {todos,deleteById,changeChecked} = this.props
    return (
        <ul className="todo-main">
            {todos.map(item =>  <Item key={item.id} item={item} deleteById={deleteById} changeChecked={changeChecked}></Item>)}
        
        </ul>
    )
  }
}

























                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               